#ifndef __TERMINAL_PARSE_H__
#define __TERMINAL_PARSE_H__
#include <typescommon.h>
#if DEVICE_PLATFORM_CONFIGURE != DEVICE_PLATFORM_C51_MCU
#pragma pack(1)
#endif
typedef struct
{
    uint8_t parseStep;
    uint8_t rcvSize;
    uint8_t packSize;
    char packData[1];
} termParseStc;
#if DEVICE_PLATFORM_CONFIGURE != DEVICE_PLATFORM_C51_MCU
#pragma pack(0)
#endif
int termParseInit(void *tpsPtr, uint8_t bufSize);
int termParseUpdate(void *tpsPtr, uint8_t indata);
#define termPsGetPackPtr(psPtr) (((termParseStc *)psPtr)->packData)
#endif